<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
<script language="JavaScript" type="text/javascript">
<!--

// Global variable to hold player's reference.
var _Nimbb;

// Global variable to hold the guid of the recorded video.
var _Guid = "";

// Event: Nimbb Player has been initialized and is ready.
function Nimbb_initCompleted(idPlayer)
{
  // Get a reference to the player since it was successfully created.
  _Nimbb = document[idPlayer];
}

// Event: the video was saved.
function Nimbb_videoSaved(idPlayer)
{
  _Guid = _Nimbb.getGuid();
}

// Get the data from the form, which are the name and the video's guid.
// Check that everything is completed.
function submit()
{
  var box = document.getElementById("nameTextBox");
	
  // Make sure the name is specified.
  if( box.value == "" )
  {
    alert("Please enter your name to proceed.");
    return;
  }
	
  // Verify that the video is not currently recording.
  if( _Nimbb.getState() == "recording" )
  {
    alert("The video is being recorded. Please wait.");
    return;
  }
	
  // Check that video has been recorded.
  if( _Guid == "" )
  {
    alert("You did not save the video.  Click save.");
    return;
  }
	
  alert(box.value + ", your video GUID is " + _Guid);
}

// -->
</script>
Your name: <input id="nameTextBox" type="text" name="name" style="width:200px;">
<br><br>

<object id="nimbb" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="320" height="240" codebase="http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab">
<param name="movie" value="http://player.nimbb.com/nimbb.swf?mode=record&simplepage=1&key=487da58d96" />
<param name="allowScriptAccess" value="always" />
<param name="allowFullScreen" value="true" />
<embed name="nimbb" src="http://player.nimbb.com/nimbb.swf?mode=record&simplepage=1&key=487da58d96" width="320" height="240" allowScriptAccess="always" allowFullScreen="true" pluginspage="http://www.adobe.com/go/getflashplayer"></embed>
</object>

<br><br>
<a href="javascript:submit();">Submit form!</a>
</body>
</html>